<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        //$oTask = new Application_Component_Task_Model_Task();
    }

    public function indexAction()
    {
        
        
        
        $mAccount = new Application_Model_Mapper_Accounts();
        $mAccount->setParentId(array(9,15,1));        
//        
//        $oAccount = $mAccount->searchById(1);
//        
//        App_Common::debug_p($oAccount);
//        
//        
        $oAC = $mAccount->searchAll();        
//      
        $adata = $oAC->groupByRole();
        App_Common::debug_p($adata);
        
        foreach($oAC as $oAccount) {
            App_Common::debug_p($oAccount);
        }
    }


}

